import type { UserProfile } from "@/entities/account/UserProfile";
import { $post } from "@/utils/network.ts";

export function loginReq(data: any) {
  return $post<UserProfile>("/mock/login", data, { enableLoading: true, promptError: true });
}
export function sendCodeReq(data: { phone: string; }) {
  return $post("/mock/sendCode", data, { enableLoading: true, promptError: true });
}